home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / Libraries / BSP Tree 1.2 / Sources / Graphics / include / object_3d.h < prev    next >
Encoding:
Text File  |  1995-03-17  |  1.3 KB  |  31 lines  |  [TEXT/MMCC]

  1. //------------------------------------------------------------------------------
  2. //    File:                    object_3d.h
  3. //    Date:                    9/22/94
  4. //    Author:                Bretton Wade
  5. //
  6. //    Description:    this file contains the class definition for an object_3d
  7. //
  8. //------------------------------------------------------------------------------
  9.  
  10. #include "ray_3d.h"
  11.  
  12. #ifndef    OBJECT_3D
  13. #define    OBJECT_3D
  14.  
  15. //------------------------------------------------------------------------------
  16. //    classes
  17. //------------------------------------------------------------------------------
  18. class    object_3d                                                                                                                                        //    object_3d class
  19. {                                                                                                                                                                //    begin
  20.     private:                                                                                                                                            //    members internal to this class only
  21.     protected:                                                                                                                                        //    members internal to this class hierarchy
  22.     public:                                                                                                                                                //    members available externally
  23.                 object_3d (void) {}                                                                                                                //    constructor
  24. virtual    ~object_3d (void);                                                                                                                    //    destructor
  25. virtual    real        RayIntersection (const ray &r) const = 0;                                                //    return the distance along the ray at which the intersection occurs
  26. };                                                                                                                                                            //    end
  27.  
  28. //------------------------------------------------------------------------------
  29.  
  30. #endif    //OBJECT_3D
  31.